<template>
	<view>
	    <view v-for="item in datalist" class="itemnva" @click="get_detail_one(item.id)" >
	        <view class="items">订单号：{{item.order_no}}</view>
	        <view class="items">网点编号：{{item.uid}}</view>
	        <view class="items">网点名称：{{item.uname}}</view>
	        <view class="items" v-if="item.status == 0">申请状态：待审核</view>
	        <view class="items" v-if="item.status == 1">申请状态：审核通过</view>
	        <view class="items" v-if="item.status == 2">申请状态：已拒绝</view>
	        <view class="items">申请时间：{{item.add_time}}</view>
	       <!-- <view class="shenpi" v-if="item.status == 0">
	            <view class="yy" @click="jujued(item.id)" >拒绝</view>
	            <view class="yy" @click="acceptd(item.id)" >通过</view>
	        </view> -->
	    </view>
	    <view class="nodata" v-if="datalist.length == 0">暂无数据</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				datalist:[]
			}
		},
		onShow() {
			this.get_data()
		},
		methods: {
		  get_data(){
			  var data={}
			  var that=this
			  data.jxs_code=uni.getStorageSync('fahuo_username').user_code
			  this.request('/api/duoqudao/apply_log', data,"post").then(ret => {
				  that.datalist=ret.data
			  })
			},
			get_detail_one(id){
				uni.navigateTo({
				  url: '/pages/main/duojifahuo/tuihuoappley/detail?id='+id,
				})
			},
		}
	}
</script>

<style>
.items{
  line-height: 25px;
  font-size: 14px;
  padding-left: 15px;
}
.itemnva{
  margin: 10px;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 15px 0px;
  background-color: #fff;
}
.nodata{
  text-align: center;
  color: #999;
  margin-top: 150px;
}
page{
  background-color: #f5f5f5;
}
.shenpi{
  display: flex;
  justify-content:space-between;
  width: 80%;
  margin: 0 auto;
  line-height: 36px;
}
.yy{
  width: 60px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 5px;
}
</style>
